package com.basic.backend.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@ApiModel("首页统计视图对象")
@Data
public class IndexStatisticsVO {
    @ApiModelProperty(value = "文章总数", example = "150")
    private Long totalArticles;

    @ApiModelProperty(value = "已审核文章数", example = "120")
    private Long checkedArticles;

    @ApiModelProperty(value = "用户总数", example = "50")
    private Long totalUsers;

    @ApiModelProperty(value = "新增用户数（24小时内）", example = "3")
    private Long newUsers;

    @ApiModelProperty(value = "真实文章比例", example = "75.25%")
    private String truthRatio;

    @ApiModelProperty(value = "AI生成文章比例", example = "24.75%")
    private String aiRatio;

    @ApiModelProperty(value = "内存使用量（格式：已用/总量）", example = "8.3G/15.6G")
    private String memoryUsage;

    @ApiModelProperty(value = "CPU负载百分比", example = "62.5%")
    private String cpuLoad;

    @ApiModelProperty(value = "磁盘使用量（格式：已用/总量）", example = "128.4G/256.0G")
    private String diskUsage;

    @ApiModelProperty(value = "内存使用历史数据（百分比数组，最近10个点）",
            example = "[65.3, 66.1, 67.4, 68.0, 62.5, 63.2, 64.8, 65.5, 66.0, 62.5]")
    private List<Double> memoryHistory = new ArrayList<>(10);
}